package com.trt.beibei.repository;

import com.trt.beibei.model.Category;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @author tanrentao
 * @date 2021-08-11
 * @desc
 */
public interface CategoryRepository extends JpaRepository<Category, Long> {

    List<Category> findAllByIsRootOrderByIndexAsc(Boolean isRoot);

}
